import {POST,GET} from "./request.js"

/**
 文档列表
 page=1
 */
export const getTeacherhelperDocs = (data)=>{
	return GET('/teacherhelper/docs',data);
}

/**
 删除文档
 id=1
/teacherhelper/doc_del?id=5 
 */
export const getTeacherhelperDocDel = (data)=>{
	return GET('/teacherhelper/doc_del',data);
}

/**
 文档详细
 id=1
 */
export const getTeacherhelperDocsone = (data)=>{
	return GET('/teacherhelper/doc_one',data);
}

/**
 上传文档
 */
export const getTeacherhelperUpload = (data)=>{
	return POST('/teacherhelper/doc_upload',data);
}


/**
 内容列表
page=1
 */
export const getTeacherhelperContents = (data)=>{
	return GET('/teacherhelper/contents',data);
}

/**
 删除文档
 id=1
/teacherhelper/content_del?id=5
 */
export const getTeacherhelperContentDel = (data)=>{
	return GET('/teacherhelper/content_del',data);
}
/**
 内容详细
teacherhelper/content_one?id=1
 */
export const getTeacherhelperContentsOne = (data)=>{
	return GET('/teacherhelper/content_one',data);
}

/**
 发布内容
teacherhelper/content_send
 */
export const getTeacherhelperContentsSend = (data)=>{
	return POST('/teacherhelper/content_send',data);
}